package com.cqhilink.iot.jobstandardmanagement.facade.service.reportTemp;

import com.cqhilink.iot.jobstandardmanagement.facade.model.IntDataSrcItemValue;
import com.cqhilink.iot.jobstandardmanagement.facade.model.Report;
import com.cqhilink.iot.jobstandardmanagement.facade.model.ReportTotalValue;

import java.util.HashMap;
import java.util.List;

/**
 * 修改报表各种信息service
 * Created by yangcs on 2017/3/20.
 */
public interface JsmReportService {

    /**
     * 修改报表信息
     * @param report
     * @return
     */
    int saveInfo(Report report);

    /**
     * 修改整点数据
     * @param value
     * @return
     */
    HashMap saveValue(IntDataSrcItemValue value);

    /**
     * 修改合计数据
     * @param reportTotalValue
     * @return
     */
    int saveSum(ReportTotalValue reportTotalValue,String userId);

    /**
     * 新增查看运行数据
     */
    List<IntDataSrcItemValue> selectIntDataSrcItemList(IntDataSrcItemValue intDataSrcItemValue);

    /**
     * 特性值查询最近的的一次值
     * @param intDataSrcItemValue
     */
    IntDataSrcItemValue getLastIntDataSrcItemValue(IntDataSrcItemValue intDataSrcItemValue);
}
